package top.glkj.hms.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.glkj.hms.entity.StaticValue;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2020/12/23 2:38
 */
public interface StaticValueDao extends JpaRepository<StaticValue, Long>, JpaSpecificationExecutor<StaticValue> {
    /**
     * 查询参数根据名称
     * @param name 名称
     * @return  StaticValue
     */
    public StaticValue findStaticValueByName(String name);

    /**
     * 查询参数根据编码
     * @param code 编码
     * @return StaticValue
     */
    public StaticValue findStaticValueByCode(String code);
}
